<template>
  <div>
    <van-tabbar v-model="active">
      <van-tabbar-item 
       route
       v-for="(item, index) in indexchildren"
       :key="index"
       :to="item.path"
       :icon="item.icon"
       >{{item.title}}</van-tabbar-item>
      
    </van-tabbar>
  </div>
</template>
<script>
import { indexchildren } from "../router/index";
export default {
  name: "My_footer",
  data() {
    return {
      active: 0,
      indexchildren
    };
  }
};
</script>